package data.nanjing.expo.models.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by zjp on 2018/6/24.
 * QQ：34948062
 * github: https://www.github.com/zjp1029
 * web： http://www.zjp1029.cn
 * 活动详情表
 * 对应表:activity_info_detail
 */
public class ActivityInfoDetail {

    public ActivityInfoDetail() {}

    public ActivityInfoDetail(String activityGuide, String street, String introduce, String schedule,
                              String organizations, String location, String guestInfo) {
        this.activityGuide = activityGuide;
        this.street = street;
        this.introduce = introduce;
        this.schedule = schedule;
        this.organizations = organizations;
        this.location = location;
        this.guestInfo = guestInfo;
    }

    private Integer id;

    private Integer activityId; //对应的活动id

    private String activityGuide;   //参会指导

    @NotNull(message = "详细地址不能为空")
    private String street;  //街道地址

    private String introduce;   //介绍

    private String schedule;    //日程

    private String organizations;   //组织机构

    @NotNull(message = "举办地不能为空")
    private String location;    //目的地

    private String guestInfo;   //嘉宾信息

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public String getActivityGuide() {
        return activityGuide;
    }

    public void setActivityGuide(String activityGuide) {
        this.activityGuide = activityGuide;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }


    public String getSchedule() {
        return schedule;
    }

    public void setSchedule(String schedule) {
        this.schedule = schedule;
    }

    public String getOrganizations() {
        return organizations;
    }

    public void setOrganizations(String organizations) {
        this.organizations = organizations;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getGuestInfo() {
        return guestInfo;
    }

    public void setGuestInfo(String guestInfo) {
        this.guestInfo = guestInfo;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ActivityInfoDetail{" +
                "id=" + id +
                ", activityId=" + activityId +
                ", activityGuide='" + activityGuide + '\'' +
                ", street='" + street + '\'' +
                ", introduce='" + introduce + '\'' +
                ", schedule='" + schedule + '\'' +
                ", organizations='" + organizations + '\'' +
                ", location='" + location + '\'' +
                ", guestInfo='" + guestInfo + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
